#!/bin/bash

XPECTED_ARGS=1

#if [ $# -ne $EXPECTED_ARGS ]
#then
#  echo ""
#  echo "Usage: `basename $0` <keywords>"
#  echo ""
#  echo "Where:"
#  echo "    <keywords> is the query to search for within movie titles"
#  echo "    Note: Query servers must already be running"
#  exit $E_BADARGS
#fi

query="$@"
CMD="java -jar ../imdbclient.jar topology.ini query $query"
echo $CMD
eval "($CMD) | tee search.log "
